#! /bin/sh

pause ()
{
  pwd
  read -p "脚本被暂停" var
}

cd ../resources/
zip -u resources.zip *.xrc > /dev/null 2> /dev/null
cp ./resources.zip ../dev/share/m/resources.zip

cd ../resources/sdk
zip -u manager_resources.zip *.xrc > /dev/null 2> /dev/null
cp ./manager_resources.zip ../../dev/share/m/manager_resources.zip

cd ../../resources/Abbreviations
zip -u Abbreviations.zip *.xrc > /dev/null 2> /dev/null
cp ./Abbreviations.zip ../../dev/share/m/Abbreviations.zip

cd ../../resources/Astyle
zip -u Astyle.zip *.xrc > /dev/null 2> /dev/null
cp ./Astyle.zip ../../dev/share/m/Astyle.zip

cd ../../resources/CodeCompletion
zip -u CodeCompletion.zip *.xrc > /dev/null 2> /dev/null
cp ./CodeCompletion.zip ../../dev/share/m/CodeCompletion.zip

cd ../../resources/Compiler
zip -u Compiler.zip *.xrc > /dev/null 2> /dev/null
cp ./Compiler.zip ../../dev/share/m/Compiler.zip

cd ../../resources/FileManager
zip -u FileManager.zip *.xrc > /dev/null 2> /dev/null
cp ./FileManager.zip ../../dev/share/m/FileManager.zip

cd ../../resources/IncrementalSearch
zip -u IncrementalSearch.zip *.xrc > /dev/null 2> /dev/null
cp ./IncrementalSearch.zip ../../dev/share/m/IncrementalSearch.zip

cd ../../resources/OccurrencesHighlighting
zip -u OccurrencesHighlighting.zip *.xrc > /dev/null 2> /dev/null
cp ./OccurrencesHighlighting.zip ../../dev/share/m/OccurrencesHighlighting.zip

cd ../../resources/ToDoList
zip -u ToDoList.zip *.xrc > /dev/null 2> /dev/null
cp ./ToDoList.zip ../../dev/share/m/ToDoList.zip

cd ../../resources/ClassWizard
zip -u ClassWizard.zip *.xrc > /dev/null 2> /dev/null
cp ./ClassWizard.zip ../../dev/share/m/ClassWizard.zip

cd ../../resources/Debugger
zip -u Debugger.zip *.xrc > /dev/null 2> /dev/null
cp ./Debugger.zip ../../dev/share/m/Debugger.zip

echo "ok"

exit 0

